STEP 8: We have our loop ready to create each robot body, so let's give it the necessary arguments!

  • Change the image label argument of the new sprite from "codester" to "middle2".
  • Change the sprite's x-coordinate argument from 0 to body_x.
  • Change the sprite's y-coordinate argument from 0 to -75.

THINK: Why are we only seeing one body, even though we create five because the command is in a loop?

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)